#include <iostream>
#include <memory>
#include "tcp_server.hpp"

int main(int num,char* args[])
{
    if(num != 2)
    {
        std::cout << args[0] << " port"<<std::endl;
        exit(1);
    }
    uint16_t port = std::stoi(args[1]);
    std::unique_ptr<MyServer::TcpSer> TS(new MyServer::TcpSer(port));
    TS->InitSer();
    TS->run();


    return 0;
}